package yunplus.io.hchome.model.api.contract;

import android.support.annotation.NonNull;

import java.util.Map;

/**
 * Created by WangFan on 2017/1/6.
 */

public interface IWS {

    void init(@NonNull String wsUrl);

    void init(@NonNull String wsUrl, String[] protocols);

    void init(String wsUrl, IFPMCallback initHandler);

    void sendWS(@NonNull IWSInput input, IFPMCallback callback);

    void onError(IFPMCallback callback);

    boolean isConnecting();

    String getConnectedURL();
}
